'use strict';
const requireEx=require('yi-require');
const $ = requireEx('yi-schema');
module.exports = {
    query: $.object({
        page: $.object({
            size: $.number().integer().default(10).description("每页显示条数"),
            index: $.number().integer().default(1).description("显示第几页")
        }),
        filter: $.object({
            _id: $.mongoid().description("主键"),
            ID:$.string().min(1).description('ID'),
            ParentId:$.string().min(1).description('上级ID'),
            Name:$.string().description('名称'),
            ShortName:$.string().description('简称'),
            levelType:$.number().valid(1,2,3,4).description('等级码'),
            CityCode:$.string().description('城市区号'),
            ZipCode:$.string().description('邮编'),
            MergerName:$.string().description('全称'),
            //Lng":114.97509,"Lat":38.17653,
            PinYin:$.string().description('拼音')
        })
    })

};
